package com.example.company.api

import com.example.net.HttpsRetrofitAnnotation
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object CompanyHiltModel {
    @Provides
    @Singleton
    fun getCompanyApiModel(@HttpsRetrofitAnnotation retrofit: Retrofit):CompanyApiServer{
        return retrofit.create(CompanyApiServer::class.java)
    }
}